package com.carey.blog.repository;

import java.util.List;

import org.json.JSONObject;

import com.carey.blog.framework.latke.repository.Repository;
import com.carey.blog.framework.latke.repository.RepositoryException;

/**
 * Comment repository.
 * 
 */
public interface CommentRepository extends Repository {

	/**
	 * Gets post comments recently with the specified fetch.
	 * 
	 * @param fetchSize
	 *            the specified fetch size
	 * @return a list of comments recently, returns an empty list if not found
	 * @throws RepositoryException
	 *             repository exception
	 */
	List<JSONObject> getRecentComments(final int fetchSize)
			throws RepositoryException;
}
